import { director } from "cc";

export class MyEvent {
    public static ROTATE = "ROTATE";
    public static SHOWROTATE = "ROTATE";
    public static SHOWPENDANT = "SHOWPENDANT";
}

export class EventManager {
    public static get Scene() {
        return director.getScene();
    }
    public static ON(event: string, func: Function, target: Object) {
        director.getScene().on(event, func, target);
    }
    public static OFF(event: string, func: Function, target: Object) {
        director.getScene().off(event, func, target);
    }
}


